package com.study.jyg.rxjava2study.activity;

import android.os.Bundle;
import androidx.appcompat.widget.Toolbar;
import android.widget.RadioGroup;

import com.study.jyg.rxjava2study.R;
import com.study.jyg.rxjava2study.base.BasicActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class RadioGroupActivity extends BasicActivity {

    @BindView(R.id.toolBar)
    Toolbar toolBar;
    @BindView(R.id.radioGroup)
    RadioGroup radioGroup;

    @Override
    protected int getLayout() {
        return R.layout.activity_radio_group;
    }

    @Override
    protected void initView() {
        toolBar.setNavigationOnClickListener(v -> finish());
        radioGroup.setOnCheckedChangeListener((group, checkedId) -> {
            switch (checkedId){
                case R.id.radio1:

                    break;
                case R.id.radio2:

                    break;
                case R.id.radio3:

                    break;
            }
        });
    }

}
